Skip to content

Chart: Update DiscretePointsAggregation Demo Desc. - #36249

Open
arman-boyakhchyan wants to merge 3 commits into
DevExpress:mainfrom
arman-boyakhchyan:chart-discrete-aggr-demo-update-26-2
Open

arman-boyakhchyan wants to merge 3 commits into
DevExpress:mainfrom
arman-boyakhchyan:chart-discrete-aggr-demo-update-26-2

Conversation

@arman-boyakhchyan

Copy link
Copy Markdown
Contributor

No description provided.

@arman-boyakhchyan arman-boyakhchyan self-assigned this Nov 11, 2026
@arman-boyakhchyan arman-boyakhchyan added the WIP Work in progress label Nov 11, 2026
@arman-boyakhchyan
arman-boyakhchyan requested a review from a team as a code owner November 11, 2026 09:50
Copilot AI balanced review requested due to automatic review settings November 11, 2026 09:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The description implies gray maximum-reference bars are visible in Sum mode, but taller overlapping sum bars hide them.

1 open issue
What changed in this PR

Updates the Chart discrete-point aggregation demo description to explain its oil-production data, overlapping bars, and aggregation controls. No runtime code changes.

Changes:

  • Replaces generic setup steps with demo-specific explanations of aggregation, tooltips, and available methods.
  • Clarifies common aggregation settings and the gray series’ maximum-value override.
File Description
apps/​demos/​Demos/​Charts/​DiscretePointsAggregation/​description.md Rewrites the demo explanation and configuration guidance.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 11, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for this documentation-only clarification of the demo’s aggregation behavior and controls.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@arman-boyakhchyan arman-boyakhchyan removed the WIP Work in progress label Nov 11, 2026

- Individual series
Assign `true` to the [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/).[aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/#enabled) property.
This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve overlapping bars in the same position. Aggregation replaces them with a single bar.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, sounds like a bug. Correct me if my edit is wrong.

Suggested change
This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve overlapping bars in the same position. Aggregation replaces them with a single bar.
This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so that every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve stacked bars in the same position. Aggregation replaces them with a single bar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Overlapping" is the correct word here, "Stacked" bars are a separate concept: https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxChart/Series_Types/StackedBarSeries/


In this demo, data aggregation is enabled for all series.
- **Aggregation enabled**
Clear this checkbox to display source data. All twelve monthly bars overlap and look like a single bar as tall as the highest monthly value. The tooltip displays the month for the bar under the mouse pointer, and this month changes as you move the pointer along the bar.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this?

Suggested change
Clear this checkbox to display source data. All twelve monthly bars overlap and look like a single bar as tall as the highest monthly value. The tooltip displays the month for the bar under the mouse pointer, and this month changes as you move the pointer along the bar.
Uncheck this checkbox to display original (source) data as stacked bars. The tooltip displays the bar's month on hover.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not quite accurate. Each bar you see in this demo is in fact 12 overlapping bars (one for each month of the year). Tooltips are displayed for individual months only (when aggregation is disabled)

- **Method**
Select the value that aggregated bars display: average, sum, or minimum. Gray bars in the background display the monthly maximum for comparison when average or minimum is selected.

You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings. In this demo, the gray series always use the *"max"* aggregation method.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings. In this demo, the gray series always use the *"max"* aggregation method.
You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) option in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "gray series" here refers to the background bar, should we not describe it here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've mentioned this in the previous paragraph. I don't think we should repeat the idea.

Co-authored-by: Elena Khamliuk <80813840+khamlyuk@users.noreply.github.com>
Signed-off-by: Arman Boyakhchyan <arman.boyakhchyan@devexpress.com>
Copilot AI balanced review requested due to automatic review settings November 13, 2026 04:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the documentation-only update clarifying the chart demo’s aggregation behavior and controls.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants